Skip to content

GH-145278: freeze encodings (partially) and linecache#148347

Merged
FFY00 merged 1 commit intopython:mainfrom
FFY00:freeze-startup-modules
Apr 14, 2026
Merged

GH-145278: freeze encodings (partially) and linecache#148347
FFY00 merged 1 commit intopython:mainfrom
FFY00:freeze-startup-modules

Conversation

@FFY00
Copy link
Copy Markdown
Member

@FFY00 FFY00 commented Apr 10, 2026

Signed-off-by: Filipe Laíns <lains@riseup.net>
@bedevere-bot
Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @FFY00 for commit 719d17d 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F148347%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Apr 10, 2026
@FFY00
Copy link
Copy Markdown
Member Author

FFY00 commented Apr 14, 2026

The raspbian buildbot failure is weird. Grasping straws, the only possible connection I can see is this PR touching the IO initialization.

Per previous Windows failure, it seems that when executing the encodings module, before it is finalized, trying to import a non-frozen submodule can cause failures. I don't see anything missing, but if the buildbot failure is indeed connected, my best guess is that this situation happens under the buildbot environment.

Since I cannot identify an actual connection here, I am gonna go ahead and merge, keeping an eye on the bug reports.

@FFY00 FFY00 merged commit 0012686 into python:main Apr 14, 2026
131 of 134 checks passed
@bedevere-bot
Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot ARM Raspbian 3.x (tier-3) has failed when building commit 0012686.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/424/builds/13416) and take a look at the build logs.
  4. Check if the failure is related to this commit (0012686) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#/builders/424/builds/13416

Failed tests:

  • test.test_io.test_fileio

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/test_io/test_fileio.py", line 406, in check_readall
    self.assertIn(
    ~~~~~~~~~~~~~^
        fd_str,
        ^^^^^^^
        ev.args,
        ^^^^^^^^
        f"Looking for file descriptor in arguments|ev={ev}"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: '3' not found in ['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'] : Looking for file descriptor in arguments|ev=StraceEvent(syscall='mmap2', args=['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'], returncode='0xf7490000')


Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/test_io/test_fileio.py", line 406, in check_readall
    self.assertIn(
    ~~~~~~~~~~~~~^
        fd_str,
        ^^^^^^^
        ev.args,
        ^^^^^^^^
        f"Looking for file descriptor in arguments|ev={ev}"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: '3' not found in ['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'] : Looking for file descriptor in arguments|ev=StraceEvent(syscall='mmap2', args=['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'], returncode='0xf7776000')


Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/test_io/test_fileio.py", line 406, in check_readall
    self.assertIn(
    ~~~~~~~~~~~~~^
        fd_str,
        ^^^^^^^
        ev.args,
        ^^^^^^^^
        f"Looking for file descriptor in arguments|ev={ev}"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: '3' not found in ['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'] : Looking for file descriptor in arguments|ev=StraceEvent(syscall='mmap2', args=['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'], returncode='0xf78a2000')


Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/test_io/test_fileio.py", line 406, in check_readall
    self.assertIn(
    ~~~~~~~~~~~~~^
        fd_str,
        ^^^^^^^
        ev.args,
        ^^^^^^^^
        f"Looking for file descriptor in arguments|ev={ev}"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: '3' not found in ['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'] : Looking for file descriptor in arguments|ev=StraceEvent(syscall='mmap2', args=['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'], returncode='0xf769e000')


Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/test_io/test_fileio.py", line 406, in check_readall
    self.assertIn(
    ~~~~~~~~~~~~~^
        fd_str,
        ^^^^^^^
        ev.args,
        ^^^^^^^^
        f"Looking for file descriptor in arguments|ev={ev}"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: '3' not found in ['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'] : Looking for file descriptor in arguments|ev=StraceEvent(syscall='mmap2', args=['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'], returncode='0xf77f6000')


Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/test_io/test_fileio.py", line 406, in check_readall
    self.assertIn(
    ~~~~~~~~~~~~~^
        fd_str,
        ^^^^^^^
        ev.args,
        ^^^^^^^^
        f"Looking for file descriptor in arguments|ev={ev}"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: '3' not found in ['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'] : Looking for file descriptor in arguments|ev=StraceEvent(syscall='mmap2', args=['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'], returncode='0xf7b30000')


Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/test_io/test_fileio.py", line 406, in check_readall
    self.assertIn(
    ~~~~~~~~~~~~~^
        fd_str,
        ^^^^^^^
        ev.args,
        ^^^^^^^^
        f"Looking for file descriptor in arguments|ev={ev}"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: '3' not found in ['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'] : Looking for file descriptor in arguments|ev=StraceEvent(syscall='mmap2', args=['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'], returncode='0xf76b0000')


Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/test_io/test_fileio.py", line 406, in check_readall
    self.assertIn(
    ~~~~~~~~~~~~~^
        fd_str,
        ^^^^^^^
        ev.args,
        ^^^^^^^^
        f"Looking for file descriptor in arguments|ev={ev}"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: '3' not found in ['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'] : Looking for file descriptor in arguments|ev=StraceEvent(syscall='mmap2', args=['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'], returncode='0xf79b0000')


Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/test_io/test_fileio.py", line 406, in check_readall
    self.assertIn(
    ~~~~~~~~~~~~~^
        fd_str,
        ^^^^^^^
        ev.args,
        ^^^^^^^^
        f"Looking for file descriptor in arguments|ev={ev}"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: '3' not found in ['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'] : Looking for file descriptor in arguments|ev=StraceEvent(syscall='mmap2', args=['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'], returncode='0xf74ca000')


Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/test_io/test_fileio.py", line 406, in check_readall
    self.assertIn(
    ~~~~~~~~~~~~~^
        fd_str,
        ^^^^^^^
        ev.args,
        ^^^^^^^^
        f"Looking for file descriptor in arguments|ev={ev}"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: '3' not found in ['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'] : Looking for file descriptor in arguments|ev=StraceEvent(syscall='mmap2', args=['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'], returncode='0xf7ae0000')


Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/test_io/test_fileio.py", line 406, in check_readall
    self.assertIn(
    ~~~~~~~~~~~~~^
        fd_str,
        ^^^^^^^
        ev.args,
        ^^^^^^^^
        f"Looking for file descriptor in arguments|ev={ev}"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: '3' not found in ['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'] : Looking for file descriptor in arguments|ev=StraceEvent(syscall='mmap2', args=['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'], returncode='0xf76ea000')


Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/test_io/test_fileio.py", line 406, in check_readall
    self.assertIn(
    ~~~~~~~~~~~~~^
        fd_str,
        ^^^^^^^
        ev.args,
        ^^^^^^^^
        f"Looking for file descriptor in arguments|ev={ev}"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: '3' not found in ['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'] : Looking for file descriptor in arguments|ev=StraceEvent(syscall='mmap2', args=['NULL', '135168', 'PROT_READ|PROT_WRITE', 'MAP_PRIVATE|MAP_ANONYMOUS', '-1', '0'], returncode='0xf7a96000')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants